﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="SellerProject.test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery.js" type="text/javascript"></script>
    <link href="seller.css" rel="stylesheet" type="text/css" />
    <link href="Css/sellmain.css" rel="stylesheet" type="text/css" />


<script type="text/javascript" language="javascript">

//    window.onload = function () {
//        debugger;
//        var pa_frame = document.getElementById("ifm");

//        if (pa_frame != null) {
//            //var HeightValue = pa_frame.contentWindow.document.body.scrollHeight;
//            var HeightValue = pa_frame.contentWindow.document.body.scrollHeight;
//            if (HeightValue < 300) { HeightValue = 300 } //不小于600
//            //pa_frame.style.height = HeightValue;
//            $("#ifm").css("height", HeightValue)
//            }
//    }

            $(document).ready(function(){
                debugger;
                $("#ifm").load(function(){
                    $(this).height($(this).contents().height() < 300 ? 300: $(this).contents().height());
                });
            });
</script>


</head>
<body>
    <form id="form1" runat="server">
        <iframe width="1000px" frameborder="0" src="test2.aspx" id="ifm" name="ifm" ></iframe>
    </form>
    <div style="display:none;">
        <p> wwwwwwwwww </p> 
        <div   style= "position:relative;left:0;top:0 "> 测试 </div> 
        <%--文字 "测试 "将始终位与wwwwww下，而下面则不同： --%>
        <p> wwwwwwwwww </p> 
        <div   style= "position:absolute;left:0;top:0 "> 测试 </div>
        <asp:HyperLink ID="HyperLink1" runat="server">HyperLink</asp:HyperLink>
        <a href="">ffffffff</a>

    </div>
</body>
</html>
